package meicai.appium.utils.ExtentReports;

import com.relevantcodes.extentreports.ExtentReports;
import com.relevantcodes.extentreports.NetworkMode;
import java.util.Locale;

public class ExtentManager {
	 private static ExtentReports extent;
	 
	    public synchronized static ExtentReports getReporter(){
	        if(extent == null){
	            //Set HTML reporting file location
	            String workingDir = System.getProperty("user.dir");
	            extent = new ExtentReports(workingDir+"\\ExtentReports\\ExtentReportResults.html", 
	            		true,NetworkMode.OFFLINE,Locale.CHINESE);
	           
	        }
	        return extent;
	    }
}
